Skip to main content

CreateBandwidthPackage

Description

create NAT bandwidth package using CreateBandwidthPackage interface.

Request Method

POST

Request Path

/apsara/route/Vpc/CreateBandwidthPackage

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
IpCountBODYintegerYes2number of public network IP in NAT bandwidth packet, value range:1~50.
DescriptionBODYstringNobandwidth package descriptionNAT bandwidth package description information. 2 to 256 characters in length, which must start with a letter or Chinese, but cannot start with http:// or https://.
ZoneBODYstringNocn-qingdao-env17-amtest11001-aThe available area where the NAT bandwidth package is located. when this parameter is not specified, the system will randomly assign a usable area. Description The IP on the NAT bandwidth package and the back-end ECS are not in the same zone, which does not affect their connectivity; however, when they are in the same zone, the delay can be reduced.
ISPBODYstringNoBGPcurrently only supports BGP.
versionBODYstringNo2016-01-01version of api
NameBODYstringNobandwidth package nameThe name of the NAT bandwidth package. It must be 2 to 128 characters in length and must start with a letter or Chinese. It can contain numbers, half-width periods (.), underscores (_), and dashes (-). But you cannot use http:// or https:// start.
InternetChargeTypeBODYstringNoPayByBandwidthnetwork billing type, value: PayByTraffic: Billing by traffic. PayByBandwidth: billed by bandwidth.
regionIdBODYstringYesNo sample value for this parameter.region id
BandwidthBODYintegerYes5The bandwidth of the NAT bandwidth package. Value range:5~1000, unit Mbps.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID of the NAT bandwidth package. You can obtain the region ID by calling the DescribeRegions interface.
ClientTokenBODYstringNo02fb3da4-130e-11e9-8e44-001****client token, used to ensure the idempotence of the request. The value of this parameter is generated by the client. It must be unique between different requests. The maximum value is no more than 64 ASCII characters.
NatGatewayIdBODYstringYesngw-7mwb327j1****ID of NAT gateway.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}